package com.luci.security;

import lombok.Data;
import org.springframework.security.access.ConfigAttribute;

/**
 * url对应的角色模型
 *
 * @author yuyanan
 * @version 1.0
 * @date 18-11-17
 */
@Data
public class CustomConfigAttribute implements ConfigAttribute{

    private String role;

    public CustomConfigAttribute() {
    }

    public CustomConfigAttribute(String role) {
        this.role = role;
    }

    @Override
    public String getAttribute() {
        return this.role;
    }
}
